<%-- 
    Document   : RegisterEvent
    Created on : Aug 8, 2012, 9:58:10 PM
    Author     : Administrator
--%>


<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="/WEB-INF/taglib139.tld" prefix="pg" %>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <title>Register Events</title>
        <link type="text/css" href="CSS/humanity/jquery-ui-1.8.17.custom.css" rel="stylesheet" />
        <link rel="stylesheet" href="CSS/style_1.css" type="text/css" charset="utf-8" />
        <script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
        <script type="text/javascript" src="js/jquery-ui-1.8.17.custom.min.js"></script>
        <script type="text/javascript" src="js/jquery-1.6.js"></script>
        <script type="text/javascript" src="js/jquery-ui-1.8.13.custom.min.js"></script>
        <script type="text/javascript" src="js/additional-methods.js"></script>
        <script type="text/javascript" src="js/jquery.validate.js"></script>
        <script>
            $(function() {
                $("#date").datepicker({ dateFormat: 'dd/mm/yy' });
                $("#testForm").validate({
                    rules:{
                        txtReason: {
                            required:true
                        },
                        txtDate: {
                            required:true
                        }
                    }
                })
            });

        </script>

    </head>
    <body>
        <div id="wrapper">
            <div id="header"> </div>
            <div id="left">
                <%
                    String users = (String) session.getAttribute("login");
                    if (users == null) {
                        response.sendRedirect("LoginForm.jsp");
                    }
                %>
                <div id="logo">
                    <h1>Four Idiots</h1>
                    <p>Company Portal</p>
                </div>
                <div id="nav">
                    <ul>
                        <li class="important"><a href="Home.jsp">Home</a></li>
                        <li><a href="index.jsp">Events</a></li>
                        <li><a href="Statistic.jsp">Statistic</a></li>
                        <li><a href="FeedBack.jsp">FeedBack</a></li>
                        <li><a href="Winners">Winners</a></li>
                        <li><a href="Help.jsp">Help</a></li>
                        <li><a href="LoginForm.jsp">Logout</a></li>
                    </ul>
                </div>
                <div id="news">

                </div>
                <div id="support">
                    <p><b>Phone:01652-384-764</b></p>
                    <p><b>Email:support@fouridiots.com</b></p>
                </div>
            </div>
            <div id="right">
                <h2>Register Events</h2>
                <form action="Controllers" method="post" id="testForm">
                    <div align="left">
                        <table style="width:100%">
                            <tr>
                                <th align="left" style="width:30%">Name Customer</th>
                                <th align="left"><input type="text" name="txtCustomer" readonly="" value="${sessionScope.login}" style="width: 180px;height: 25px"/></th>
                            </tr>
                            <tr>
                                <th align="left" style="width:20%">Code Event</th>
                                <th align="left"><input type="text" name="txtEvent" readonly="" <c:if test="${not empty requestScope.Registers}">value="${requestScope.Registers}"</c:if> style="width: 180px;height: 25px"/></th>
                            </tr>
                               <tr>
                                <th align="left" style="width:20%">Name Event</th>
                                <th align="left"><input type="text" name="txtEvent" readonly="" <c:if test="${not empty requestScope.nameevent}">value="${requestScope.nameevent}"</c:if> style="width: 180px;height: 25px"/></th>
                            </tr>
                            <tr>
                                <th align="left" style="width:20%">Reason</th>
                                <th align="left">
                                    <textarea name="txtReason" rows="4" cols="20" style="width:230px;height:100px">
                                    </textarea>
                                </th>
                            </tr>
                            <tr>
                                <th align="left" style="width:20%"></th>
                                <th align="left"><input type="hidden"  name="txtDate" <c:if test="${not empty requestScope.Date}">value="${requestScope.Date}"</c:if> style="width: 180px;height: 25px"/></th>
                            </tr>
                            <tr>
                                <th align="left"></th>
                                <th align="left">
                                    <input type="submit" name="btAction" value="Send" style="width: 90px;height: 25px"></input>
                                    <input type="reset" name="btAction" value="Reset" style="width: 80px;height: 25px"></input>
                                </th>
                            </tr>
                        </table>
                    </div>
                </form>
            </div>
            <div class="clear"> </div>
            <div id="spacer"> </div>

            <div id="footer">
                <div id="copyright">
                    Copyright &copy; 2012 Four Idiots Company All right reserved.
                </div>
                <div id="footerline"></div>
            </div>

        </div>
    </body>
</html>
